package com.kaka.bus.engine.user.login;


import com.kaka.bus.bean.HttpWrapper;
import com.kaka.bus.bean.LoginBean;
import com.kaka.bus.mvp.BasePresenter;
import com.kaka.bus.mvp.BaseView;

/**
 * Created by zhangqi on 2016/9/28.
 */

public interface LoginContract {

     interface View extends BaseView {
         /**
          * login 成功
          * @param data
          */
        void loginSuccess(HttpWrapper<LoginBean> data);

        void phoneState(HttpWrapper<String> wrapper);

         void sendSuccess(HttpWrapper<String> wrapper);
     }

     interface Presenter extends BasePresenter<View> {
         void isExist(String phone);
         /**
          * 在此处做登录操作
          * @param phone
          * @param pwd
          */
        void login(String phone, String pwd, String tokeyKey,String systemVersion,String phoneType);
        void sendSms(String phone, String tokenKey, String event, String device);

         void loginOnSms(String phone, String authCode, String tokenKey, String device,String systemVersion,String phoneType);
     }
}
